<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/include/taglib.jsp"%>
<html>
	<head>
		<meta charset="UTF-8">
		<title>投资记录-
			<s:if test="%{#request.borrowProduct == 2}">月利宝</s:if>
		    <s:elseif test="%{#request.borrowProduct == 3}">季发宝</s:elseif>
		    <s:elseif test="%{#request.borrowProduct == 4}">稳盈宝</s:elseif>
		</title>
		<jsp:include page="/include/wchat/head.jsp"></jsp:include>

		<link type="text/css" rel="stylesheet"
			href="/v2/wchat/resrc/css/invest.css">
	</head>
	<body>
		<div id="header">

			<a href="/wchatDebtDetail.do?id=${id}" class="backto">返回</a>


			<div class="title-sub">
				投资记录
			</div>
		</div>
		<div id="wrap">
			<div class="table investhis-loan">
				<ul class="items title">
					<li class="c1">
						投资人/时间
					</li>
					<li class="c2">
						债权人
					</li>
					<li class="c3">
						投资金额
					</li>
				</ul>

				<s:if test="#request.debtInvestRecordList.size>0">
					<s:iterator value="#request.debtInvestRecordList" var="debtInvestRecord">
						<ul class="items">
							<li class="c1">
								${debtInvestRecord.username}
								<span class="date"> ${debtInvestRecord.investTime}</span>
							</li>
							<li class="c2">
								${debtInvestRecord.username}
							</li>
							<li class="c3">
								${debtInvestRecord.investAmount}
								<!-- Util.numFormat(${yebInvestRecord.investAmount},2) -->
							</li>
						</ul>
					</s:iterator>
					<div class="page">
						<s:if test="#request.currentPage  <= 1">
							<span class="disabled pre"> 上一页 </span>
						</s:if>
						<s:else>
							<a href="javascript:;"
								onclick="return $pager.go(${currentPage-1});" class="pre">上一页
							</a>
						</s:else>
						<s:if test="#request.currentPage == #request.totalPageNum">
							<span class="disabled next"> 下一页 </span>
						</s:if>
						<s:else>
							<a href="javascript:;"
								onclick="return $pager.go(${currentPage + 1});" class="next">
								下一页 </a>
						</s:else>
					</div>
				</s:if>
				<s:else>
					<div class="no-project">
			   	   		<div class="inner">暂无内容</div>
			     	</div>
				</s:else>

				<form id="pageSearchForm" name="pageSearchForm" action=""
					method="post"></form>
				<script type="text/javascript">
				//分页js形式带参请求
				var $pager = (function(manager) {
	    			var _params = {};
	    			manager.go = function(page) {
	        			var htmlStr = '<input type="hidden" name="page" value="' + page + '" />';
	        			for (var key in _params) {
	            			htmlStr += '<input type="hidden" name="' + key + '" value="' + _params[key] + '" />';
	        			}
	        			$("#pageSearchForm").html(htmlStr).submit();
	    			};
	    			manager.create = function(params) {
	        			_params = params;
	    			};
	    			return manager;
				} ($pager || {}));
				</script>
			</div>
		</div>
		<jsp:include page="/include/wchat/footer.jsp"></jsp:include>
	</body>
</html>